package com.yycx.module.bus.provider.controller.hy;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import com.yycx.common.mybatis.model.*;

import java.util.Map;

import org.springframework.web.bind.annotation.RestController;
import com.yycx.common.springmvc.base.BaseController;
import com.yycx.module.bus.client.entity.hy.BusPolicySaleman;
import com.yycx.module.bus.provider.service.hy.BusPolicySalemanService;


/**
 * 政策详情控制器
 *
 * @author flyme
 * @date 2023-07-18
 */
@RestController
@RequestMapping("/bus/bps/" )
public class BusPolicySalemanController extends BaseController<BusPolicySalemanService, BusPolicySaleman> {

    @ApiOperation(value = "政策详情-分页列表", notes = "政策详情分页列表" )
    @GetMapping(value = "page" )
    public ResultBody pageList(@RequestParam(required = false) Map params) {
        return bizService.pageList(params);
    }

    @ApiOperation(value = "政策详情-列表", notes = "政策详情列表" )
    @GetMapping(value = "list" )
    public ResultBody list(@RequestParam(required = false) Map params) {
        return bizService.listEntityMap(params);
    }

    @ApiOperation(value = "政策详情-添加", notes = "添加政策详情" )
    @PostMapping(value = "save" )
    public ResultBody save(@RequestParam(required = false) Map params) {
        return bizService.add(params);
    }

    @ApiOperation(value = "政策详情-更新", notes = "更新政策详情" )
    @PostMapping(value = "update" )
    public ResultBody update(@RequestParam(required = false) Map params) {
        return bizService.edit(params);
    }

    @ApiOperation(value = "政策详情-删除", notes = "删除政策详情" )
    @PostMapping(value = "remove" )
    public ResultBody remove(@RequestParam(required = false) Map params) {
        return bizService.delete(params);
    }


    @ApiOperation(value = "政策详情-详情", notes = "政策详情详情" )
    @GetMapping(value = "get" )
    public ResultBody get(@RequestParam(required = false) Map params) {
        return bizService.get(params);
    }

}
